/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: app2022 - Var3
 * <p>Powered by webrx On 2022-01-05 09:55:56
 * <p>Created by IntelliJ IDEA
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Var3 {
    public static void main(String[] args) {
        int i = 0;
        ++i;//相当于 i = i + 1;  i = 1
        System.out.println(i--);//1  i=0;
        System.out.println(++i);//1 i = 1;
        System.out.println(--i);//0 i = 0;


        byte y = 6;
        ++y; // y = y + 1; 错误
        y--;
        y += 3;//相当于 y = y + 3; 错误
        System.out.println(y);//9

        int c = ++y;
        System.out.println(++c);//11


        byte d = (byte) 1024;
        System.out.println(d);
        long f = 1324242342424224L;

        //long l L   float f F  double d D
        double d1 = 10;
        float f1 = .5f;
        System.out.println(d1);
        System.out.println(f1);

        //48 / 24 = 2 .... 0
    }
}
